package hoyo.zqy.user.service;

import hoyo.zqy.basic.dto.LoginDto;
import hoyo.zqy.basic.util.AjaxResult;
import hoyo.zqy.user.domain.Logininfo;
import hoyo.zqy.basic.service.IBaseService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqy
 * @since 2022-11-04
 */
public interface ILogininfoService extends IBaseService<Logininfo> {



    /**
     * 登录
     * @param loginDto
     * @return
     */
    Map<String,Object> accountLogin(LoginDto loginDto);

    /**
     * 微信三方登录
     * @param code
     * @return
     */
    AjaxResult wechatLogin(String code);

    /**
     * 微信三方绑定
     * @param map
     * @return
     */
    AjaxResult wechatBinder(Map<String, String> map);
}
